package com.jxdinfo.hussar.base.cloud.service.feign.impl;//package com.jxdinfo.hussar.base.cloud.service.feign.impl;

import com.jxdinfo.hussar.base.cloud.feign.RemoteClientDetailsService;
import com.jxdinfo.hussar.base.cloud.model.client.SysAuthClientModel;
import com.jxdinfo.hussar.base.cloud.service.SysAuthClientDetailsService;
import com.jxdinfo.hussar.platform.core.support.service.dto.ClientModelDetails;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.rmi.Remote;

@Service
public class RemoteClientDetailsServiceImpl implements SysAuthClientDetailsService {

    @Resource
    private RemoteClientDetailsService remoteClientDetailsService;

    @Override
    public ClientModelDetails doLoginByClientId(String connName, SysAuthClientModel sysAuthClientModel) {
        return remoteClientDetailsService.getClientModelByClientId(sysAuthClientModel).getData();
    }
}
